texture: Split out type detection
authorBenjamin Otte <otte@redhat.com>
Tue, 14 Sep 2021 15:03:49 +0000 (17:03 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 16 Sep 2021 22:25:22 +0000 (00:25 +0200)
commit2d3de8608cbba2ff82c5e93d16d7d18b32683222
tree71f882948889ca5fdcb2bbbf4b23b4dd8e56549c
parent100b0bf7d92d490254e900052f2b351b29fa19fc
texture: Split out type detection

This way, the code using it becomes clearer and we can use it in
multiple places without accidentally doing it wrong (hint: see next
commit).
gdk/gdktexture.c
gdk/loaders/gdkjpegprivate.h
gdk/loaders/gdkpngprivate.h
gdk/loaders/gdktiffprivate.h